/*
 * @Author: White
 * @description: 音乐接口
 * @LastEditTime: 2021-10-20 22:39:01
 */

import axios from './config'

// 手机登录
export const getLogin = (data) => {
  return axios('login/cellphone', {
    method: 'get',
    params: data
  })
}

// 获取banner图
export const getBanner = () => {
  return axios('banner', {
    method: 'get'
  })
}

// 推荐歌单
export const getRecommend = () => {
  return axios('personalized', {
    method: 'get'
  })
}

// 独家放送栏目
export const getPrivate = () => {
  return axios('personalized/privatecontent', {
    method: 'get'
  })
}

// 最新音乐
export const getNewMusic = () => {
  return axios('personalized/newsong', {
    method: 'get'
  })
}

// 推荐MV
export const getMv = () => {
  return axios('/personalized/mv', {
    method: 'get'
  })
}

// Mv播放接口
export const getMvPlay = (params) => {
  return axios('/mv/url', {
    method: 'get',
    params: params
  })
}

// 主播电台
export const getRadio = () => {
  return axios('/dj/personalize/recommend', {
    method: 'get'
  })
}

// 搜索结果
export const getSearch = (params) => {
  return axios('/search', {
    method: 'get',
    params: params
  })
}

// 搜索列表
export const getSearchLsit = (params) => {
  return axios('/search/suggest', {
    method: 'get',
    params: params
  })
}

// 热门搜索
export const getSearchHot = (params) => {
  return axios('/search/hot', {
    method: 'get',
    params: params
  })
}

// 歌单分类
export const getPlaylist = () => {
  return axios('/playlist/catlist', {
    method: 'get'
  })
}

// 热门歌单分类
export const getPlayhot = () => {
  return axios('/playlist/hot', {
    method: 'get'
  })
}

// 歌单 ( 网友精选碟 )
export const getPlaytop = (params) => {
  return axios('/top/playlist', {
    method: 'get',
    params: params
  })
}

// 排行榜
export const getRankList = () => {
  return axios('/toplist/detail', {
    method: 'get'
  })
}

// 歌手
export const getSinger = (params) => {
  return axios('/artist/list', {
    method: 'get',
    params: params
  })
}

// 新歌速递
export const getNewspeed = (params) => {
  return axios('/top/song', {
    method: 'get',
    params: params
  })
}

// 新碟上架
export const getNewDvd = (params) => {
  return axios('/album/new', {
    method: 'get',
    params: params
  })
}

// 获取歌曲详情
export const getMusicDetail = (params) => {
  return axios('/song/detail', {
    method: 'get',
    params: params
  })
}

// 获取用户歌单
export const getUsersongList = (params) => {
  return axios('/user/playlist', {
    method: 'get',
    params: params
  })
}

// 获取歌单详情
export const getSonglistDetail = (params) => {
  return axios('/playlist/detail', {
    method: 'get',
    params: params
  })
}

// 获取歌词
export const getLyric = (params) => {
  return axios('/lyric', {
    method: 'get',
    params: params
  })
}

// 获取评论
export const getDiscuss = (params) => {
  return axios('/comment/music', {
    method: 'get',
    params: params
  })
}

// 发表评论
export const postDiscuss = (params) => {
  return axios('/comment', {
    method: 'post',
    params: params
  })
}